<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>M-乐淘首页</title>
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
    <link rel="icon" href="./favicon.ico">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/search.css">

</head>

<body>
    <div class="lt-layout">
        <!-- 头部 -->
        <div class="lt-header">
            <div class="he-house"><a href="./index.html"><i class="mui-icon mui-icon-back"></i></a></div>
            <div class="he-txt">乐淘云购</div>
        </div>
        <!-- 主体 -->
        <div class="lt-main">
            <div class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <!-- 搜索框 -->
                    <div class="sear-seek">
                        <input type="text" name="" placeholder="请输入搜索内容" class="seek-text">
                        <button class="mui-btn mui-btn-primary seek">搜索</button>
                    </div>
                    <!-- 历史记录 -->
                    <div class="sear-history">
                        <ul>
                            <li>
                                <span class="sear-his">搜索历史</span>
                                <span class="sear-empty mui-pull-right"><i></i>清空记录</span>
                            </li>
                            <li>
                                <span class="sear-his"><a href="#">实打实</a></span>
                                <span class="sear-empty mui-pull-right">×</span>
                            </li>
                            <li>
                                <span class="sear-his"><a href="#">实打实</a></span>
                                <span class="sear-empty mui-pull-right">×</span>
                            </li>
                            <li>
                                <span class="sear-his"><a href="#">实打实</a></span>
                                <span class="sear-empty mui-pull-right">×</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <!-- 底部· -->
        <div class="lt-footer">
            <ul>
                <li class="stick">
                    <a href="./index.html">
                        <i class="fa fa-home"></i>
                        <p>首页</p>
                    </a>
                </li>
                <li>
                    <a href="./category.html">
                        <i class="fa fa-align-justify"></i>
                        <p>分类</p>
                    </a>
                </li>
                <li>
                    <a href="./cart.html">
                        <i class="fa fa-shopping-cart"></i>
                        <p>购物车</p>
                    </a>
                </li>
                <li>
                    <a href="./user.html">
                        <i class="fa fa-user"></i>
                        <p>用户中心</p>
                    </a>
                </li>
            </ul>
        </div>
    </div>

    <!-- 历史记录模板 -->
    <script type="text/html" id="tmp">
     {{ if rows.length == 0}}
     <p>没有历史记录</p>
     {{else}} 
        <ul>
            <li>
                <span>搜索历史</span>
                <span class="sear-emptys mui-pull-right"><i class="fa fa-trash"></i>清空记录</span>
            </li>
            {{each rows v i}}
            <li>
                <span class="sear-his"><a href="#">{{ v }}</a></span>
                <span class="sear-empty mui-pull-right" data-index="{{i}}">×</span>
            </li>
            {{/each}}
        </ul> 
        {{/if}}
    </script>

    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/search.js"></script>
</body>

</html>